package cn.seaboot.admin.flake.dao;

import cn.seaboot.admin.flake.bean.FlakeResultMapping;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Dao
 * 结果字段映射T_FLAKE_RESULT_MAPPING
 * <p>
 *
 * @author Mr.css on 2018-6-20
 */
@Repository
public interface FlakeResultMappingDao {
    /**
     * 增
     *
     * @param flakeResultMapping pojo
     * @return affected rows
     */
    int insert(FlakeResultMapping flakeResultMapping);

    /**
     * 删
     *
     * @param id id
     * @return affected rows
     */
    int deleteById(String id);

    /**
     * 改
     *
     * @param flakeResultMapping pojo
     * @return affected rows
     */
    int updateSampleById(FlakeResultMapping flakeResultMapping);

    /**
     * 查
     *
     * @param id id
     * @return pojo
     */
    FlakeResultMapping selectById(String id);

    /**
     * 查列表
     *
     * @param resultMap map
     * @return listMap
     */
    List<FlakeResultMapping> selectList(String resultMap);
}
